package com.health.mapp.impl;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.health.db.model.StuffSchedule;
import com.health.db.model.StuffScheduleExample;
import com.health.db.model.StuffScheduleTemp;
import com.health.db.service.user.IStuffListService;
import com.health.db.service.user.IStuffScheduleService;
import com.health.mapp.bean.Header;
import com.health.mapp.bean.QueryOrderTimeReq;
import com.health.mapp.bean.QueryOrderTimeResp;
import com.health.mapp.utils.DateUtils;
import com.health.mapp.utils.Response;
import com.health.mapp.utils.ResultCode;

/**
 *  订单查询类
 * @author HiRoad
 *
 */
public class QueryOrderTimeImpl implements ActionInterface {
	//private IRegisterOrderService registerOrderService  ;
	
	private  IStuffScheduleService stuffScheduleService;
	
	@Override
	public Response execute(Header header, Object reqBean) throws Exception {
		
		QueryOrderTimeReq req=(QueryOrderTimeReq) reqBean;
		QueryOrderTimeResp _resp= new QueryOrderTimeResp();
		
		if (null!=req.getDocId()&&0!=req.getDocId()) {
			_resp.setOrderTimelist(stuffScheduleService.selectByStuff(req.getDocId()));
		}else{
			_resp.setErrorCode(ResultCode.OPERATION_LAKE_PARAMETER_ERROR);
			_resp.setErrorMsg(ResultCode.OPERATION_LAKE_PARAMETER_ERROR_NOTE);
			return _resp;
		}
		
	


		_resp.setErrorCode(ResultCode.OPERATION_SUCCESS);
		_resp.setErrorMsg(ResultCode.OPERATION_SUCCESS_NOTE);
 
		return _resp;
	}

	/**
	 * @return the stuffScheduleService
	 */
	public IStuffScheduleService getStuffScheduleService() {
		return stuffScheduleService;
	}

	/**
	 * @param stuffScheduleService the stuffScheduleService to set
	 */
	public void setStuffScheduleService(IStuffScheduleService stuffScheduleService) {
		this.stuffScheduleService = stuffScheduleService;
	}

}
